package com.etcn.modules.statical.statistics.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.etcn.common.annotation.Manage;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.statical.statistics.service.IExperienceService;

/**
 * 归类经验相关统计
 * @author guozc
 * @date 2018年6月18日 上午6:48:15
 */
@Controller
@RequestMapping("/v1/experiences")
public class ExperienceController extends BaseController {
    
    @Autowired
    IExperienceService experienceService;

    /**
     * 热词词频 ( 品名词频 ) 统计
     */
    @Manage
    @RequestMapping(value = "categorydataword", method = RequestMethod.POST)
    public @ResponseBody Object categoryDataword(@RequestBody String params) throws Exception{
        return experienceService.categoryDataword(params);
    }
    
    /**
     * 热词所属归类经验 （规格型号 / 申报要素）查询
     */
    @Manage
    @RequestMapping(value = "categorydata", method = RequestMethod.POST)
    public @ResponseBody Object categoryData(@RequestBody String params) throws Exception{
        return experienceService.categoryData(params);
    }
    
}